{
    [
        module, {
            rules: [
                shouldUseSourceMap && {
                    enforce: "pre",
                    exclude: [/@babel(?:\/|\\{1,2})runtime/, /node_modules/],
                    test: /\.(js|mjs|jsx|ts|tsx|css|less)$/,
                    loader: require.resolve("source-map-loader"),
                }
            ]
        },
        plugins, [
            [
                "import", {
                    libraryName: "antd4",
                    libraryDirectory: "es",
                    style: "true" // `style: true` 会加载 less 文件
                }
            ],
            [
                "import", {
                    libraryName: "antd3",
                    libraryDirectory: "es",
                    style: "true" // `style: true` 会加载 less 文件
                },
                "import-antd3",
            ]
        ]
    ]
}
